package com.emmmya.ocs.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.emmmya.harinCheck.annotation.Check;
import com.emmmya.ocs.common.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.util.Date;

/**
 * @description:
 * @author: Harin 黑医
 * @createDate: 2020-09-14
 * @version: 1.0
 */
@Data
@Entity
@TableName("h_dict_data")
@Table(name="h_dict_data",uniqueConstraints=@UniqueConstraint(columnNames={"parent_id","data_name"}))
public class DictData extends BaseEntity {
    @Column(name="parent_id")
    @Check(name = "父ID")
    private Long parentId;

    @Column(name="No")
    @Check(name = "序号")
    private int no;

    @Column(name="data_name")
    @Check(name = "数据名称")
    private String dataName;

    @Column(name="data_value")
    @Check(name = "数据值")
    private String dataValue;

    @Column(name="effective_date")
    @Check(name = "生效日期")
    private Date effectiveDate;

    @Column(name = "expiration_date")
    @Check(name = "失效日期")
    private Date expirationDate;

    @Column(name = "status")
    @Check(name = "状态")
    private String status;

    @Column(name = "remarks")
    @Check(name = "备注")
    private String remarks;
}
